<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"                  
                xmlns:f="http://java.sun.com/jsf/core"  
                xmlns:p="http://primefaces.org/ui"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                template="./default_template.xhtml">

    <ui:define name="content">
        <f:view>
            <h:form>
                <div class="row">
                    <h1>Profile</h1>
                    <div class="span2">
                        <h:graphicImage alt="#{userController.utilisateur.typeUser}" url="resources/img/#{userController.utilisateur.typeUser}.jpg" />
                    </div>
                    <div class="span7 lead">
                        <h:panelGrid columns="2">
                            <h:outputText value="Nom :" class="pull-right" />
                            <h:outputText id="nom" value="#{userController.utilisateur.nom}" />
                            <h:outputText value="Login :" class="pull-right" />
                            <h:outputText id="login" value="#{userController.utilisateur.login}" />
                            <h:outputText value="Type :" class="pull-right" />
                            <h:outputText id="type" value="#{userController.utilisateur.typeUser}" />
                            &nbsp;
                            <h:commandLink value="Mettre à jour" class="btn btn-large btn-primary text-right" action="users_create.xhtml" style="margin-top: 20px;" />
                        </h:panelGrid>
                    </div>
                </div>
            </h:form>
        </f:view>
    </ui:define>

</ui:composition>
